//controllers/appctrl

//引入配置文件和数据对象
var config = require('../config');
var db = config.db;

//首页 index 函数
exports.index = function(req,res,next){
	/*db.getDoc('golf',function(err,doc){
		console.log('index');
		console.log(doc.mgb);
	});
	*/
	console.log('index');
	
};

exports.foo = function(req,res,next){
	console.log('foo');
};